<!DOCTYPE html>
<html lang="en">
<head>
 	@include('front.layouts.head',['title'=>'My wishlist | E-Shopper'])
      
</head><!--/head-->

<body>
	@include('front.layouts.header')
	<div class="container">
		<div class="row">
			<div class="col-md-3">
				@include('front.layouts.sidebar')
			</div>
			<div class="col-md-9">
				<h2 style="padding: 0;margin:0"><small>我的愿望单</small></h2>
				<hr>
				<table class="table">
					<thead>
						<tr>
							<th>#</th>
							<th>名称</th>
							<th>价格</th>
							<th>加入时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						@foreach ($wishlistP as $wishlist)
							<tr>
								<td id="{{$wishlist->id}}">
							<input type="hidden" name="ids[]" value="{{$wishlist->id}}">

									{{$wishlist->id}}
								</td>
								<td>
									<img src="{{asset('productpics').'/'.$wishlist->product->pro_img}}" style="width: 30px;height:30px;margin-right: 2px">
									 {{$wishlist->product->pro_name}}
								</td>
								<td>
									{{$wishlist->product->pro_prices}}
								</td>
								<td>
									{{$wishlist->created_at->diffForHumans()}}
								</td>
								<td>
									<a href="#" class="btn btn-danger btn-xs">购买</a>
									<a href="#" class="btn btn-warning btn-xs">删除</a>
								</td>
							</tr>
						@endforeach

						<form>
							<button type="button" class="btn btn-primary">全部结算</button>
						</form>
					</tbody>
				</table>
			</div>	
		</div>
	</div>
</body>
</html>
